package com.zqkey.rescuecommand.entity;

import com.badlogic.gdx.files.FileHandle;
import com.zqkey.rescuecommand.Assets;

public class Level {
	
	public Ground[][] grounds = new Ground[4][13];
	
	public int level;
	
	public Level(FileHandle levelFile) {
		byte[] bs = levelFile.readBytes();
		int i=0;
		int j=0;
		for(byte b : bs) {
			// huanhang
			if(b == 10) {
				i++;
				j=0;
			} else if(b == 49) {
				grounds[i][j] = new Ground(Assets.ground, 0);
				j++;
			} else if(b != 13) {
				
			}
		}
		System.out.println();
	}
	
}
